new list-array with values c#

105

new list/array with values c# -

var myList = new List<string> { "foo", "bar" };
//Alternatively
var myArray = new[]{ "foo", "bar" };

Comments

Submit
0 Comments